-- GENERATED SPELL FOR [Dalaran Watcher] --


function spell0_1888(pUnit, Event) --@Fire Shield,n/a--
pUnit:FullCastSpellOnTarget(134,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1888', 1000, 1)
end

function spell1_1888(pUnit, Event) --@Flamestrike,n/a--
pUnit:FullCastSpellOnTarget(2120,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1888', 10000, 1)
end

function Sorts_1888(pUnit, Event)
local choix_sorts_1888 = math.random(0, 1)
if choix_sorts_1888 == 0 then
pUnit:RegisterEvent('spell0_1888', 1, 1)
end
if choix_sorts_1888 == 1 then
pUnit:RegisterEvent('spell1_1888', 1, 1)
end
end

function mob1888_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1888', math.random(1500, 3000), 1)
end

function mob1888_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1888_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1888_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1888, 1, 'mob1888_Action')
RegisterUnitEvent(1888, 2, 'mob1888_Leave')
RegisterUnitEvent(1888, 3, 'mob1888_Kill')
RegisterUnitEvent(1888, 4, 'mob1888_Die')
